<!DOCTYPE html>
<html>

{include file='public/header'}
<style>
    .layui-table-view{
        margin: 0;
    }
</style>
<body>
    <table id="audit-detail" lay-filter="audit-detail"></table>

    <script>
        let id = GetQueryString('id')
        let video_name = GetQueryString('video_name')
        let platform = GetQueryString('platform')

        function getAuditTxt2(platform, d) {
            if (platform == 2) {
                if (d.audit_status) {
                    return d.audit_status === 2 ? '可播放' : '不可播放';
                }
                return '审核中';
            }
            return '';
        }

        let params = {
            elem: '#audit-detail'
            , toolbar: ''
            , url: '/admin/thirdAuditRecord/viewList' //数据接口
            , id: 'audit-detail'
            , page:true
            , where:{id}
            , height: 600
            , cols: [[ //表头
                { type: 'checkbox' }
                , { field: 'id', title: 'ID', width: 100, sort: true,align:'center' }
                , { field: 'name', title: '剧集名称', align:'center'}
                , { title: '平台', align:'center',
                    templet: function (d) {
                        return platform == 2 ? '抖音' : '';
                    }
                }
                , { title: '审核状态',align:'center',
                    templet: function (d) {
                        return getAuditTxt2(platform, d)
                    }
                }
                , { field: 'audit_remark', title: '审核备注', align:'center'}
                , { field: 'audit_at', title: '审核时间', align:'center'}
            ]]
        }

        tableList(params)

    </script>
</body>

</html>